/* 
 * File:   Node.cpp
 * Author: Lucky
 * 
 * Created on 28. září 2011, 12:52
 */


#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <sstream>
#include "Node.h"
#include "Coordinate.h"

using namespace std;

Node::Node(int x, int y, Action action) {
    m_action = action;
    m_popped = false;
    this->x = x;
    this->y = y;
}

Node::Node(const Node& orig) {
    throw "No Node copy constructor!";
    this->x = orig.x;
    this->y = orig.y;
    m_action = orig.m_action;
    m_popped = orig.m_popped;

}

Node::~Node() {
    // delete m_coord;
}

//int * Node::getCoordinate() {
//    
//    //return *m_coord;
//}

Action Node::getAction() const {
    return m_action;
}

bool Node::isPopped() const {
    return m_popped;
}

void Node::setPopped() {
    m_popped = true;
}

